﻿
 
 

// ******************************************************
// 这段代码是自动生成的
// 修改里面的代码，下次生成的时候会被覆盖
// ******************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Sharp.Application;
using Sharp.DataTransferObject;
using System.ServiceModel.Activation;
using Sharp.Infrastructure.Search;
using Sharp.ServiceContracts;
using Sharp.Infrastructure;
using Sharp.Infrastructure.IoC;
namespace Sharp.Services.Controllers
{
	public class EnterpriseServiceController : ApiController,IEnterpriseService
	{
		private readonly IEnterpriseService _impl = ServiceLocator.Instance.GetService<IEnterpriseService>();
				public Result SaveEmployee(EmployeeDTO model)
		{
			 return _impl.SaveEmployee(model);
		}
		public Result DeleteEmployee(Guid[] ids)
		{
			 return _impl.DeleteEmployee(ids);
		}
		public EmployeeDTO GetEmployeeInfo(Guid id)
		{
			 return _impl.GetEmployeeInfo(id);
		}
		public PagedResult<EmployeeDTO> GetEmployeePaged(PagingFeature pf)
		{
			 return _impl.GetEmployeePaged(pf);
		}
		public IEnumerable<EmployeeDTO> GetEmployeesInOrg(Guid[] orgIds)
		{
			 return _impl.GetEmployeesInOrg(orgIds);
		}
		public Result SaveJob(JobDTO model)
		{
			 return _impl.SaveJob(model);
		}
		public Result DeleteJob(Guid[] ids)
		{
			 return _impl.DeleteJob(ids);
		}
		public JobDTO GetJobInfo(Guid id)
		{
			 return _impl.GetJobInfo(id);
		}
		public PagedResult<JobDTO> GetJobPaged(PagingFeature pf)
		{
			 return _impl.GetJobPaged(pf);
		}
		public Result SaveOrg(OrgDTO model)
		{
			 return _impl.SaveOrg(model);
		}
		public Result DeleteOrgs(Guid[] ids)
		{
			 return _impl.DeleteOrgs(ids);
		}
		public OrgDTO GetOrgInfo(Guid id)
		{
			 return _impl.GetOrgInfo(id);
		}
		public IEnumerable<OrgDTO> GetOrgs()
		{
			 return _impl.GetOrgs();
		}
		public Result OrgMoveOrSort(System.Nullable<System.Guid> parentId, Guid[] ids)
		{
			 return _impl.OrgMoveOrSort(parentId, ids);
		}
		public IEnumerable<OrgLevelDTO> GetOrgLevelList()
		{
			 return _impl.GetOrgLevelList();
		}
		public Result SaveGroup(GroupDTO model)
		{
			 return _impl.SaveGroup(model);
		}
		public Result DeleteGroups(Guid[] ids)
		{
			 return _impl.DeleteGroups(ids);
		}
		public GroupDTO GetGroupInfo(Guid id)
		{
			 return _impl.GetGroupInfo(id);
		}
		public PagedResult<GroupDTO> GetGroupPaged(PagingFeature pf)
		{
			 return _impl.GetGroupPaged(pf);
		}
		/// <summary>
        /// 为客户端ajax跨域请求必须的方法
        /// </summary>
        /// <returns></returns>
        public string Options()
        {
            // HTTP 200 response with empty body
            return null;
        }
	}
}